Guild icon
Project Sekai
🔒 UMDCTF 2023 / ✅-crypto-ekans
Sutx pinned a message to this channel. 04/28/2023 3:00 PM
Avatar
@kanon wants to collaborate 🤝
15:34
@Violin wants to collaborate 🤝
Avatar
@unpickled admin bot wants to collaborate 🤝
Avatar
unpickled admin bot 04/28/2023 4:50 PM
(will prob afk this till i finish my hw but)
Avatar
@fleming wants to collaborate 🤝
Avatar
@layka_ wants to collaborate 🤝
Avatar
@Utaha wants to collaborate 🤝
Avatar
I guess the original decryption would be (V - B' * s)
09:13
I don't really know the name of encryption, but the only issue is probably the fact that s, e is related
Avatar
Avatar
Utaha
used /ctf solve
✅ Challenge solved.
Avatar
basically solve linear system to get s and win
09:40
A = ... B = ... B_prime = ... V = ... DIM = 256 q = 15901 for i in range(DIM): A[i][DIM-1-i] += 1 A = matrix(GF(q), A) B = vector(GF(q), [x[0] for x in B]) s = ~A * B B_prime = matrix(GF(q), B_prime) pt = vector(GF(q), [x[0] for x in V]) - B_prime * s flag = "" for i in range(DIM): tmp = int(pt[i]) tmp = (tmp + q // 32) // (q // 16) tmp %= 16 flag += hex(tmp)[2:] flag = [int(flag[i:i+2], 16) for i in range(0, len(flag), 2)] print(bytes(flag))
Exported 14 message(s)